﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ERPStore.Web.Events
{
    public class ProductListEvent
    {
        public ProductListEvent(ERPStore.Models.UserPrincipal principal, IEnumerable<ERPStore.Models.Product> productList, ERPStore.Models.ProductListType productListType)
    	{
			this.Principal = principal;
		    this.ProductList = productList;
            this.ProductListType = productListType;
    	}
		/// <summary>
		/// Utilisateur en cours
		/// </summary>
		/// <value>The principal.</value>
		public ERPStore.Models.UserPrincipal Principal { get; set; }
        /// <summary>
        /// Liste des produits retournés
        /// </summary>
        /// <value>The product list.</value>
		public IEnumerable<ERPStore.Models.Product> ProductList { get; set; }

        /// <summary>
        /// Type de liste retournée
        /// </summary>
        /// <value>The type of the product list.</value>
        public ERPStore.Models.ProductListType ProductListType { get; set; }
    }
}
